Total derivative

From HandWiki
Short description: Type of derivative in mathematics

In mathematics, the total derivative of a function f at a point is the best linear approximation near this point of the function with respect to its arguments. Unlike partial derivatives, the total derivative approximates the function with respect to all of its arguments, not just a single one. In many situations, this is the same as considering all partial derivatives simultaneously. The term "total derivative" is primarily used when f is a function of several variables, because when f is a function of a single variable, the total derivative is the same as the ordinary derivative of the function.[1]:198–203

The total derivative as a linear map

Let [math]\displaystyle{ U \subseteq \R^n }[/math] be an open subset. Then a function [math]\displaystyle{ f:U \to \R^m }[/math] is said to be (totally) differentiable at a point [math]\displaystyle{ a\in U }[/math] if there exists a linear transformation [math]\displaystyle{ df_a:\R^n \to \R^m }[/math] such that

[math]\displaystyle{ \lim_{x \to a} \frac{\|f(x)-f(a)-df_a(x-a)\|}{\|x-a\|}=0. }[/math]

The linear map [math]\displaystyle{ df_a }[/math] is called the (total) derivative or (total) differential of [math]\displaystyle{ f }[/math] at [math]\displaystyle{ a }[/math]. Other notations for the total derivative include [math]\displaystyle{ D_a f }[/math] and [math]\displaystyle{ Df(a) }[/math]. A function is (totally) differentiable if its total derivative exists at every point in its domain.

Conceptually, the definition of the total derivative expresses the idea that [math]\displaystyle{ df_a }[/math] is the best linear approximation to [math]\displaystyle{ f }[/math] at the point [math]\displaystyle{ a }[/math]. This can be made precise by quantifying the error in the linear approximation determined by [math]\displaystyle{ df_a }[/math]. To do so, write

[math]\displaystyle{ f(a + h) = f(a) + df_a(h) + \varepsilon(h), }[/math]

where [math]\displaystyle{ \varepsilon(h) }[/math] equals the error in the approximation. To say that the derivative of [math]\displaystyle{ f }[/math] at [math]\displaystyle{ a }[/math] is [math]\displaystyle{ df_a }[/math] is equivalent to the statement

[math]\displaystyle{ \varepsilon(h) = o(\lVert h\rVert), }[/math]

where [math]\displaystyle{ o }[/math] is little-o notation and indicates that [math]\displaystyle{ \varepsilon(h) }[/math] is much smaller than [math]\displaystyle{ \lVert h\rVert }[/math] as [math]\displaystyle{ h \to 0 }[/math]. The total derivative [math]\displaystyle{ df_a }[/math] is the unique linear transformation for which the error term is this small, and this is the sense in which it is the best linear approximation to [math]\displaystyle{ f }[/math].

The function [math]\displaystyle{ f }[/math] is differentiable if and only if each of its components [math]\displaystyle{ f_i \colon U \to \R }[/math] is differentiable, so when studying total derivatives, it is often possible to work one coordinate at a time in the codomain. However, the same is not true of the coordinates in the domain. It is true that if [math]\displaystyle{ f }[/math] is differentiable at [math]\displaystyle{ a }[/math], then each partial derivative [math]\displaystyle{ \partial f/\partial x_i }[/math] exists at [math]\displaystyle{ a }[/math]. The converse does not hold: it can happen that all of the partial derivatives of [math]\displaystyle{ f }[/math] at [math]\displaystyle{ a }[/math] exist, but [math]\displaystyle{ f }[/math] is not differentiable at [math]\displaystyle{ a }[/math]. This means that the function is very "rough" at [math]\displaystyle{ a }[/math], to such an extreme that its behavior cannot be adequately described by its behavior in the coordinate directions. When [math]\displaystyle{ f }[/math] is not so rough, this cannot happen. More precisely, if all the partial derivatives of [math]\displaystyle{ f }[/math] at [math]\displaystyle{ a }[/math] exist and are continuous in a neighborhood of [math]\displaystyle{ a }[/math], then [math]\displaystyle{ f }[/math] is differentiable at [math]\displaystyle{ a }[/math]. When this happens, then in addition, the total derivative of [math]\displaystyle{ f }[/math] is the linear transformation corresponding to the Jacobian matrix of partial derivatives at that point.[2]

The total derivative as a differential form

When the function under consideration is real-valued, the total derivative can be recast using differential forms. For example, suppose that [math]\displaystyle{ f \colon \R^n \to \R }[/math] is a differentiable function of variables [math]\displaystyle{ x_1, \ldots, x_n }[/math]. The total derivative of [math]\displaystyle{ f }[/math] at [math]\displaystyle{ a }[/math] may be written in terms of its Jacobian matrix, which in this instance is a row matrix:

[math]\displaystyle{ D f_a = \begin{bmatrix} \frac{\partial f}{\partial x_1}(a) & \cdots & \frac{\partial f}{\partial x_n}(a) \end{bmatrix}. }[/math]

The linear approximation property of the total derivative implies that if

[math]\displaystyle{ \Delta x = \begin{bmatrix} \Delta x_1 & \cdots & \Delta x_n \end{bmatrix}^\mathsf{T} }[/math]

is a small vector (where the [math]\displaystyle{ \mathsf{T} }[/math] denotes transpose, so that this vector is a column vector), then

[math]\displaystyle{ f(a + \Delta x) - f(a) \approx D f_a \cdot \Delta x = \sum_{i=1}^n \frac{\partial f}{\partial x_i}(a) \cdot \Delta x_i. }[/math]

Heuristically, this suggests that if [math]\displaystyle{ dx_1, \ldots, dx_n }[/math] are infinitesimal increments in the coordinate directions, then

[math]\displaystyle{ df_a = \sum_{i=1}^n \frac{\partial f}{\partial x_i}(a) \cdot dx_i. }[/math]

In fact, the notion of the infinitesimal, which is merely symbolic here, can be equipped with extensive mathematical structure. Techniques, such as the theory of differential forms, effectively give analytical and algebraic descriptions of objects like infinitesimal increments, [math]\displaystyle{ dx_i }[/math]. For instance, [math]\displaystyle{ dx_i }[/math] may be inscribed as a linear functional on the vector space [math]\displaystyle{ \R^n }[/math]. Evaluating [math]\displaystyle{ dx_i }[/math] at a vector [math]\displaystyle{ h }[/math] in [math]\displaystyle{ \R^n }[/math] measures how much [math]\displaystyle{ h }[/math] points in the [math]\displaystyle{ i }[/math]th coordinate direction. The total derivative [math]\displaystyle{ df_a }[/math] is a linear combination of linear functionals and hence is itself a linear functional. The evaluation [math]\displaystyle{ df_a(h) }[/math] measures how much [math]\displaystyle{ h }[/math] points in the direction determined by [math]\displaystyle{ f }[/math] at [math]\displaystyle{ a }[/math], and this direction is the gradient. This point of view makes the total derivative an instance of the exterior derivative.

Suppose now that [math]\displaystyle{ f }[/math] is a vector-valued function, that is, [math]\displaystyle{ f \colon \R^n \to \R^m }[/math]. In this case, the components [math]\displaystyle{ f_i }[/math] of [math]\displaystyle{ f }[/math] are real-valued functions, so they have associated differential forms [math]\displaystyle{ df_i }[/math]. The total derivative [math]\displaystyle{ df }[/math] amalgamates these forms into a single object and is therefore an instance of a vector-valued differential form.

The chain rule for total derivatives

Main page: Chain rule

The chain rule has a particularly elegant statement in terms of total derivatives. It says that, for two functions [math]\displaystyle{ f }[/math] and [math]\displaystyle{ g }[/math], the total derivative of the composite function [math]\displaystyle{ f \circ g }[/math] at [math]\displaystyle{ a }[/math] satisfies

[math]\displaystyle{ d(f \circ g)_a = df_{g(a)} \cdot dg_a. }[/math]

If the total derivatives of [math]\displaystyle{ f }[/math] and [math]\displaystyle{ g }[/math] are identified with their Jacobian matrices, then the composite on the right-hand side is simply matrix multiplication. This is enormously useful in applications, as it makes it possible to account for essentially arbitrary dependencies among the arguments of a composite function.

Example: Differentiation with direct dependencies

Suppose that f is a function of two variables, x and y. If these two variables are independent, so that the domain of f is [math]\displaystyle{ \R^2 }[/math], then the behavior of f may be understood in terms of its partial derivatives in the x and y directions. However, in some situations, x and y may be dependent. For example, it might happen that f is constrained to a curve [math]\displaystyle{ y = y(x) }[/math]. In this case, we are actually interested in the behavior of the composite function [math]\displaystyle{ f(x, y(x)) }[/math]. The partial derivative of f with respect to x does not give the true rate of change of f with respect to changing x because changing x necessarily changes y. However, the chain rule for the total derivative takes such dependencies into account. Write [math]\displaystyle{ \gamma(x) = (x, y(x)) }[/math]. Then, the chain rule says

[math]\displaystyle{ d(f \circ \gamma)_{x_0} = df_{(x_0, y(x_0))} \cdot d\gamma_{x_0}. }[/math]

By expressing the total derivative using Jacobian matrices, this becomes:

[math]\displaystyle{ \frac{df(x, y(x))}{dx}(x_0) = \frac{\partial f}{\partial x}(x_0, y(x_0)) \cdot \frac{\partial x}{\partial x}(x_0) + \frac{\partial f}{\partial y}(x_0, y(x_0)) \cdot \frac{\partial y}{\partial x}(x_0). }[/math]

Suppressing the evaluation at [math]\displaystyle{ x_0 }[/math] for legibility, we may also write this as

[math]\displaystyle{ \frac{df(x, y(x))}{dx} = \frac{\partial f}{\partial x} \frac{\partial x}{\partial x} + \frac{\partial f}{\partial y} \frac{\partial y}{\partial x}. }[/math]

This gives a straightforward formula for the derivative of [math]\displaystyle{ f(x, y(x)) }[/math] in terms of the partial derivatives of [math]\displaystyle{ f }[/math] and the derivative of [math]\displaystyle{ y(x) }[/math].

For example, suppose

[math]\displaystyle{ f(x,y)=xy. }[/math]

The rate of change of f with respect to x is usually the partial derivative of f with respect to x; in this case,

[math]\displaystyle{ \frac{\partial f}{\partial x} = y. }[/math]

However, if y depends on x, the partial derivative does not give the true rate of change of f as x changes because the partial derivative assumes that y is fixed. Suppose we are constrained to the line

[math]\displaystyle{ y=x. }[/math]

Then

[math]\displaystyle{ f(x,y) = f(x,x) = x^2, }[/math]

and the total derivative of f with respect to x is

[math]\displaystyle{ \frac{df}{dx} = 2 x, }[/math]

which we see is not equal to the partial derivative [math]\displaystyle{ \partial f/\partial x }[/math]. Instead of immediately substituting for y in terms of x, however, we can also use the chain rule as above:

[math]\displaystyle{ \frac{df}{dx} = \frac{\partial f}{\partial x} + \frac{\partial f}{\partial y}\frac{dy}{dx} = y+x \cdot 1 = x+y = 2x. }[/math]

Example: Differentiation with indirect dependencies

While one can often perform substitutions to eliminate indirect dependencies, the chain rule provides for a more efficient and general technique. Suppose [math]\displaystyle{ L(t,x_1,\dots,x_n) }[/math] is a function of time [math]\displaystyle{ t }[/math] and [math]\displaystyle{ n }[/math] variables [math]\displaystyle{ x_i }[/math] which themselves depend on time. Then, the time derivative of [math]\displaystyle{ L }[/math] is

[math]\displaystyle{ \frac{dL}{dt} = \frac{d}{dt} L \bigl(t, x_1(t), \ldots, x_n(t)\bigr). }[/math]

The chain rule expresses this derivative in terms of the partial derivatives of [math]\displaystyle{ L }[/math] and the time derivatives of the functions [math]\displaystyle{ x_i }[/math]:

[math]\displaystyle{ \frac{dL}{dt} = \frac{\partial L}{\partial t} + \sum_{i=1}^n \frac{\partial L}{\partial x_i}\frac{dx_i}{dt} = \biggl(\frac{\partial}{\partial t} + \sum_{i=1}^n \frac{dx_i}{dt}\frac{\partial}{\partial x_i}\biggr)(L). }[/math]

This expression is often used in physics for a gauge transformation of the Lagrangian, as two Lagrangians that differ only by the total time derivative of a function of time and the [math]\displaystyle{ n }[/math] generalized coordinates lead to the same equations of motion. An interesting example concerns the resolution of causality concerning the Wheeler–Feynman time-symmetric theory. The operator in brackets (in the final expression above) is also called the total derivative operator (with respect to [math]\displaystyle{ t }[/math]).

For example, the total derivative of [math]\displaystyle{ f(x(t),y(t)) }[/math] is

[math]\displaystyle{ \frac{df}{dt} = { \partial f \over \partial x}{dx \over dt} + {\partial f \over \partial y}{dy \over dt }. }[/math]

Here there is no [math]\displaystyle{ \partial f / \partial t }[/math] term since [math]\displaystyle{ f }[/math] itself does not depend on the independent variable [math]\displaystyle{ t }[/math] directly.

Total differential equation

A total differential equation is a differential equation expressed in terms of total derivatives. Since the exterior derivative is coordinate-free, in a sense that can be given a technical meaning, such equations are intrinsic and geometric.

Application to equation systems

In economics, it is common for the total derivative to arise in the context of a system of equations.[1]:pp. 217–220 For example, a simple supply-demand system might specify the quantity q of a product demanded as a function D of its price p and consumers' income I, the latter being an exogenous variable, and might specify the quantity supplied by producers as a function S of its price and two exogenous resource cost variables r and w. The resulting system of equations

[math]\displaystyle{ q=D(p, I), }[/math]
[math]\displaystyle{ q=S(p, r, w), }[/math]

determines the market equilibrium values of the variables p and q. The total derivative [math]\displaystyle{ dp/dr }[/math] of p with respect to r, for example, gives the sign and magnitude of the reaction of the market price to the exogenous variable r. In the indicated system, there are a total of six possible total derivatives, also known in this context as comparative static derivatives: dp / dr, dp / dw, dp / dI, dq / dr, dq / dw, and dq / dI. The total derivatives are found by totally differentiating the system of equations, dividing through by, say dr, treating dq / dr and dp / dr as the unknowns, setting dI = dw = 0, and solving the two totally differentiated equations simultaneously, typically by using Cramer's rule.

See also

References

  1. 1.0 1.1 Chiang, Alpha C. (1984). Fundamental Methods of Mathematical Economics (Third ed.). McGraw-Hill. ISBN 0-07-010813-7. https://archive.org/details/fundamentalmetho0000chia_h4v2. 
  2. Abraham, Ralph; Marsden, J. E.; Ratiu, Tudor (2012). Manifolds, Tensor Analysis, and Applications. Springer Science & Business Media. p. 78. ISBN 9781461210290. https://books.google.com/books?id=b-IlBQAAQBAJ&pg=PA78. 
  • A. D. Polyanin and V. F. Zaitsev, Handbook of Exact Solutions for Ordinary Differential Equations (2nd edition), Chapman & Hall/CRC Press, Boca Raton, 2003. ISBN 1-58488-297-2
  • From thesaurus.maths.org total derivative

External links